
/**
 * https://leetcode.cn/problems/running-sum-of-1d-array/?envType=study-plan&id=leetcode_75_level_1&plan=leetcode_75&plan_progress=x5e1zcvj
 * 
 * @param {number[]} nums
 * @return {number[]}
 */
var runningSum = function(nums) {
    let sum = 0
    for(let i =0;i<nums.length;i++){
        sum = sum + nums[i]
        nums[i] = sum
    }
    return nums
};